\hypertarget{buzzer_8c}{
\section{atmega1281/low/buzzer/buzzer.c File Reference}
\label{buzzer_8c}\index{atmega1281/low/buzzer/buzzer.c@{atmega1281/low/buzzer/buzzer.c}}
}
{\ttfamily \#include \char`\"{}buzzer.h\char`\"{}}\par
{\ttfamily \#include $<$avr/interrupt.h$>$}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{buzzer_8c_abf0d28f731e836936a87086ea8b798da}{BUZZER\_\-PORT}~PORTC
\item 
\#define \hyperlink{buzzer_8c_a72dd69773eeadd5bd64c4342bb9501bf}{BUZZER\_\-DDR}~DDRC
\item 
\#define \hyperlink{buzzer_8c_ab61d0981ed42df9e18211b273d22cfcd}{BUZZER\_\-PIN}~PC5
\item 
\#define \hyperlink{buzzer_8c_a49af6e447c57cedb83f29a48f590928c}{DO3\_\-NOTE\_\-US}~1911 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a8efa900f4ffd3503e0765fbef99e26b4}{RE3\_\-NOTE\_\-US}~1703 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a0d7f155192da125c95f4a4ab601313ce}{MI3\_\-NOTE\_\-US}~1517 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_aa39bf065d07d9d68899efd57b26e93be}{FA3\_\-NOTE\_\-US}~1351 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_adb8df9bf8c330085ffd98b7caf8355a5}{SOL3\_\-NOTE\_\-US}~1275 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_aad4f66d05e8f79a74677d9ed5a8ff899}{LA3\_\-NOTE\_\-US}~1136 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a0b8c18f3f7e755c3cc47c5d89c178820}{SI3\_\-NOTE\_\-US}~1012 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_ac6b09d906c5d234624fd0831c1f1df6d}{DO4\_\-NOTE\_\-US}~956 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_adcb48fb029747ddf9dfd44e50732643e}{RE4\_\-NOTE\_\-US}~851 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a7ba7d2a39bd5c54c896ebe5b8e338226}{MI4\_\-NOTE\_\-US}~759 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_ab42f74b8978894e4c89ea802925e451c}{FA4\_\-NOTE\_\-US}~716 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_ac26a272491b6f1e8221e0f9a76876241}{SOL4\_\-NOTE\_\-US}~638 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_abea962aa58f4476d248f3ee06a5a5014}{LA4\_\-NOTE\_\-US}~568 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a4941dc5c6f507702b04301f5a2ea3fad}{SI4\_\-NOTE\_\-US}~506 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a445277012c27f9162ae8f31a81002659}{DO5\_\-NOTE\_\-US}~478 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_ad0a1d72db34e751294e48b17452a4706}{RE5\_\-NOTE\_\-US}~426 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_abf875bd1d4f6c7ed50b4dee1549963ab}{MI5\_\-NOTE\_\-US}~379 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_ae1268c2f5b293e6cca155907cfa4bea2}{FA5\_\-NOTE\_\-US}~338 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_ae86459528791fee85be66294236386e8}{SOL5\_\-NOTE\_\-US}~301 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a8d7c12b2d662fab2a273a2f7cb3f1441}{LA5\_\-NOTE\_\-US}~268 $\ast$ (F\_\-CPU/1000000)
\item 
\#define \hyperlink{buzzer_8c_a496210b29ed14fa9417b0216ec533217}{SI5\_\-NOTE\_\-US}~253 $\ast$ (F\_\-CPU/1000000)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__nxbot__buzzer_ga0cead532fdd0c0de5fa1c1de0f6556bd}{buzzer\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Initialize the buzzer hardware. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__buzzer_ga1310d5aed0a0534924cc5d0ce387b3f2}{buzzer\_\-disable} ()
\begin{DoxyCompactList}\small\item\em Disables the buzzer. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__buzzer_ga63f4d0e2dec60a4fcbe0de3824bd2d06}{buzzer\_\-enable} ()
\begin{DoxyCompactList}\small\item\em Enables the buzzer. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__buzzer_gaa0677130ef1e000d60ab1527898e0ccf}{buzzer\_\-note} (unsigned char note)
\begin{DoxyCompactList}\small\item\em Specifies the note that should be generated. \item\end{DoxyCompactList}\item 
\hyperlink{buzzer_8c_a8aa6a32130ab26be17555166513a23ba}{ISR} (TIMER4\_\-COMPA\_\-vect)
\end{DoxyCompactItemize}


\subsection{Define Documentation}
\hypertarget{buzzer_8c_a72dd69773eeadd5bd64c4342bb9501bf}{
\index{buzzer.c@{buzzer.c}!BUZZER\_\-DDR@{BUZZER\_\-DDR}}
\index{BUZZER\_\-DDR@{BUZZER\_\-DDR}!buzzer.c@{buzzer.c}}
\subsubsection[{BUZZER\_\-DDR}]{\setlength{\rightskip}{0pt plus 5cm}\#define BUZZER\_\-DDR~DDRC}}
\label{buzzer_8c_a72dd69773eeadd5bd64c4342bb9501bf}
\hypertarget{buzzer_8c_ab61d0981ed42df9e18211b273d22cfcd}{
\index{buzzer.c@{buzzer.c}!BUZZER\_\-PIN@{BUZZER\_\-PIN}}
\index{BUZZER\_\-PIN@{BUZZER\_\-PIN}!buzzer.c@{buzzer.c}}
\subsubsection[{BUZZER\_\-PIN}]{\setlength{\rightskip}{0pt plus 5cm}\#define BUZZER\_\-PIN~PC5}}
\label{buzzer_8c_ab61d0981ed42df9e18211b273d22cfcd}
\hypertarget{buzzer_8c_abf0d28f731e836936a87086ea8b798da}{
\index{buzzer.c@{buzzer.c}!BUZZER\_\-PORT@{BUZZER\_\-PORT}}
\index{BUZZER\_\-PORT@{BUZZER\_\-PORT}!buzzer.c@{buzzer.c}}
\subsubsection[{BUZZER\_\-PORT}]{\setlength{\rightskip}{0pt plus 5cm}\#define BUZZER\_\-PORT~PORTC}}
\label{buzzer_8c_abf0d28f731e836936a87086ea8b798da}
\hypertarget{buzzer_8c_a49af6e447c57cedb83f29a48f590928c}{
\index{buzzer.c@{buzzer.c}!DO3\_\-NOTE\_\-US@{DO3\_\-NOTE\_\-US}}
\index{DO3\_\-NOTE\_\-US@{DO3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{DO3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define DO3\_\-NOTE\_\-US~1911 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a49af6e447c57cedb83f29a48f590928c}
\hypertarget{buzzer_8c_ac6b09d906c5d234624fd0831c1f1df6d}{
\index{buzzer.c@{buzzer.c}!DO4\_\-NOTE\_\-US@{DO4\_\-NOTE\_\-US}}
\index{DO4\_\-NOTE\_\-US@{DO4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{DO4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define DO4\_\-NOTE\_\-US~956 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_ac6b09d906c5d234624fd0831c1f1df6d}
\hypertarget{buzzer_8c_a445277012c27f9162ae8f31a81002659}{
\index{buzzer.c@{buzzer.c}!DO5\_\-NOTE\_\-US@{DO5\_\-NOTE\_\-US}}
\index{DO5\_\-NOTE\_\-US@{DO5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{DO5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define DO5\_\-NOTE\_\-US~478 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a445277012c27f9162ae8f31a81002659}
\hypertarget{buzzer_8c_aa39bf065d07d9d68899efd57b26e93be}{
\index{buzzer.c@{buzzer.c}!FA3\_\-NOTE\_\-US@{FA3\_\-NOTE\_\-US}}
\index{FA3\_\-NOTE\_\-US@{FA3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{FA3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define FA3\_\-NOTE\_\-US~1351 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_aa39bf065d07d9d68899efd57b26e93be}
\hypertarget{buzzer_8c_ab42f74b8978894e4c89ea802925e451c}{
\index{buzzer.c@{buzzer.c}!FA4\_\-NOTE\_\-US@{FA4\_\-NOTE\_\-US}}
\index{FA4\_\-NOTE\_\-US@{FA4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{FA4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define FA4\_\-NOTE\_\-US~716 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_ab42f74b8978894e4c89ea802925e451c}
\hypertarget{buzzer_8c_ae1268c2f5b293e6cca155907cfa4bea2}{
\index{buzzer.c@{buzzer.c}!FA5\_\-NOTE\_\-US@{FA5\_\-NOTE\_\-US}}
\index{FA5\_\-NOTE\_\-US@{FA5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{FA5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define FA5\_\-NOTE\_\-US~338 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_ae1268c2f5b293e6cca155907cfa4bea2}
\hypertarget{buzzer_8c_aad4f66d05e8f79a74677d9ed5a8ff899}{
\index{buzzer.c@{buzzer.c}!LA3\_\-NOTE\_\-US@{LA3\_\-NOTE\_\-US}}
\index{LA3\_\-NOTE\_\-US@{LA3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{LA3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define LA3\_\-NOTE\_\-US~1136 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_aad4f66d05e8f79a74677d9ed5a8ff899}
\hypertarget{buzzer_8c_abea962aa58f4476d248f3ee06a5a5014}{
\index{buzzer.c@{buzzer.c}!LA4\_\-NOTE\_\-US@{LA4\_\-NOTE\_\-US}}
\index{LA4\_\-NOTE\_\-US@{LA4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{LA4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define LA4\_\-NOTE\_\-US~568 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_abea962aa58f4476d248f3ee06a5a5014}
\hypertarget{buzzer_8c_a8d7c12b2d662fab2a273a2f7cb3f1441}{
\index{buzzer.c@{buzzer.c}!LA5\_\-NOTE\_\-US@{LA5\_\-NOTE\_\-US}}
\index{LA5\_\-NOTE\_\-US@{LA5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{LA5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define LA5\_\-NOTE\_\-US~268 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a8d7c12b2d662fab2a273a2f7cb3f1441}
\hypertarget{buzzer_8c_a0d7f155192da125c95f4a4ab601313ce}{
\index{buzzer.c@{buzzer.c}!MI3\_\-NOTE\_\-US@{MI3\_\-NOTE\_\-US}}
\index{MI3\_\-NOTE\_\-US@{MI3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{MI3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define MI3\_\-NOTE\_\-US~1517 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a0d7f155192da125c95f4a4ab601313ce}
\hypertarget{buzzer_8c_a7ba7d2a39bd5c54c896ebe5b8e338226}{
\index{buzzer.c@{buzzer.c}!MI4\_\-NOTE\_\-US@{MI4\_\-NOTE\_\-US}}
\index{MI4\_\-NOTE\_\-US@{MI4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{MI4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define MI4\_\-NOTE\_\-US~759 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a7ba7d2a39bd5c54c896ebe5b8e338226}
\hypertarget{buzzer_8c_abf875bd1d4f6c7ed50b4dee1549963ab}{
\index{buzzer.c@{buzzer.c}!MI5\_\-NOTE\_\-US@{MI5\_\-NOTE\_\-US}}
\index{MI5\_\-NOTE\_\-US@{MI5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{MI5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define MI5\_\-NOTE\_\-US~379 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_abf875bd1d4f6c7ed50b4dee1549963ab}
\hypertarget{buzzer_8c_a8efa900f4ffd3503e0765fbef99e26b4}{
\index{buzzer.c@{buzzer.c}!RE3\_\-NOTE\_\-US@{RE3\_\-NOTE\_\-US}}
\index{RE3\_\-NOTE\_\-US@{RE3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{RE3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define RE3\_\-NOTE\_\-US~1703 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a8efa900f4ffd3503e0765fbef99e26b4}
\hypertarget{buzzer_8c_adcb48fb029747ddf9dfd44e50732643e}{
\index{buzzer.c@{buzzer.c}!RE4\_\-NOTE\_\-US@{RE4\_\-NOTE\_\-US}}
\index{RE4\_\-NOTE\_\-US@{RE4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{RE4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define RE4\_\-NOTE\_\-US~851 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_adcb48fb029747ddf9dfd44e50732643e}
\hypertarget{buzzer_8c_ad0a1d72db34e751294e48b17452a4706}{
\index{buzzer.c@{buzzer.c}!RE5\_\-NOTE\_\-US@{RE5\_\-NOTE\_\-US}}
\index{RE5\_\-NOTE\_\-US@{RE5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{RE5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define RE5\_\-NOTE\_\-US~426 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_ad0a1d72db34e751294e48b17452a4706}
\hypertarget{buzzer_8c_a0b8c18f3f7e755c3cc47c5d89c178820}{
\index{buzzer.c@{buzzer.c}!SI3\_\-NOTE\_\-US@{SI3\_\-NOTE\_\-US}}
\index{SI3\_\-NOTE\_\-US@{SI3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{SI3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define SI3\_\-NOTE\_\-US~1012 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a0b8c18f3f7e755c3cc47c5d89c178820}
\hypertarget{buzzer_8c_a4941dc5c6f507702b04301f5a2ea3fad}{
\index{buzzer.c@{buzzer.c}!SI4\_\-NOTE\_\-US@{SI4\_\-NOTE\_\-US}}
\index{SI4\_\-NOTE\_\-US@{SI4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{SI4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define SI4\_\-NOTE\_\-US~506 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a4941dc5c6f507702b04301f5a2ea3fad}
\hypertarget{buzzer_8c_a496210b29ed14fa9417b0216ec533217}{
\index{buzzer.c@{buzzer.c}!SI5\_\-NOTE\_\-US@{SI5\_\-NOTE\_\-US}}
\index{SI5\_\-NOTE\_\-US@{SI5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{SI5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define SI5\_\-NOTE\_\-US~253 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_a496210b29ed14fa9417b0216ec533217}
\hypertarget{buzzer_8c_adb8df9bf8c330085ffd98b7caf8355a5}{
\index{buzzer.c@{buzzer.c}!SOL3\_\-NOTE\_\-US@{SOL3\_\-NOTE\_\-US}}
\index{SOL3\_\-NOTE\_\-US@{SOL3\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{SOL3\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define SOL3\_\-NOTE\_\-US~1275 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_adb8df9bf8c330085ffd98b7caf8355a5}
\hypertarget{buzzer_8c_ac26a272491b6f1e8221e0f9a76876241}{
\index{buzzer.c@{buzzer.c}!SOL4\_\-NOTE\_\-US@{SOL4\_\-NOTE\_\-US}}
\index{SOL4\_\-NOTE\_\-US@{SOL4\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{SOL4\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define SOL4\_\-NOTE\_\-US~638 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_ac26a272491b6f1e8221e0f9a76876241}
\hypertarget{buzzer_8c_ae86459528791fee85be66294236386e8}{
\index{buzzer.c@{buzzer.c}!SOL5\_\-NOTE\_\-US@{SOL5\_\-NOTE\_\-US}}
\index{SOL5\_\-NOTE\_\-US@{SOL5\_\-NOTE\_\-US}!buzzer.c@{buzzer.c}}
\subsubsection[{SOL5\_\-NOTE\_\-US}]{\setlength{\rightskip}{0pt plus 5cm}\#define SOL5\_\-NOTE\_\-US~301 $\ast$ (F\_\-CPU/1000000)}}
\label{buzzer_8c_ae86459528791fee85be66294236386e8}


\subsection{Function Documentation}
\hypertarget{buzzer_8c_a8aa6a32130ab26be17555166513a23ba}{
\index{buzzer.c@{buzzer.c}!ISR@{ISR}}
\index{ISR@{ISR}!buzzer.c@{buzzer.c}}
\subsubsection[{ISR}]{\setlength{\rightskip}{0pt plus 5cm}ISR (TIMER4\_\-COMPA\_\-vect)}}
\label{buzzer_8c_a8aa6a32130ab26be17555166513a23ba}
